package com.example.micrapi.feign;

import com.example.micrapi.pojo.SysMenu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "dataservice", path = "/dataservice/sysMenu", contextId = "sysMenu")
public interface SysMenuServiceFeign {

    @GetMapping("/findByRoleIds")
    List<SysMenu> findByRoleIds(@RequestParam("roleIds") List<Integer> roleIds);

}
